package fr.ajicommerce.core.service.implementation;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import fr.ajicommerce.core.dto.PhotoDTO;
import fr.ajicommerce.core.entities.Photo;
import fr.ajicommerce.core.entities.TypePhoto;
import fr.ajicommerce.core.service.generics.GenericService;
import fr.ajicommerce.core.service.interfaces.PhotoService;

@Component("photoServiceImpl")
@Transactional
public class PhotoServiceImpl extends GenericService<PhotoDTO, Photo>
implements PhotoService {
	
	public PhotoServiceImpl(Class<Photo> clazzOfA,
			Class<PhotoDTO> entityClassT) {
		super(clazzOfA, entityClassT);
	}

	public PhotoServiceImpl() {
		super(Photo.class, PhotoDTO.class);
	}

	@Override
	public long createPhoto(String name) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Photo getPhoto(long idPhoto) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void removePhoto(long idPhoto) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean setType(TypePhoto typePhoto) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void updatePhoto(long idPhoto) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public long savePhoto(String name) {
		// TODO Auto-generated method stub
		return 0;
	}
}
